package Ajedrez;

class Torre extends Pieza{

    protected int iniX, iniY, finX, finY;

    public Torre() {
    }

    public Torre( int iniX, int iniY, int finX, int finY) {
        this.iniX = iniX;
        this.iniY = iniY;
        this.finX = finX;
        this.finY = finY;
        corrept = false;

        if (this.iniY > this.finY) {
            if (this.iniX == this.finX) {
                corrept = true;

            }
        }


        if (this.iniY < this.finY) {
            if (this.iniX == this.finX) {
                corrept = true;

            }
        }
        if (this.iniX < this.finX) {
            if (this.iniY == this.finY) {

                corrept = true;

            }

        }
        if (this.iniX > this.finX) {
            if (this.iniY == this.finY) {
                corrept = true;

            }
        }

    }
}
